package com.biz.ssm.enums;

public enum CodeEnum {

    FAILED(-1,"失败"),

    SUCCESS(200,"成功"),

    NOT_LOGIN(403,"请先登录"),

    NOT_FREQUENT(999,"操作频繁,请稍后再试"),

    ;

    private final int code;

    private final String message;

    CodeEnum(int code, String message){
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
